package com.shop.shop_end.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2024-04-23
 */
@Data
@Accessors(chain = true)
@TableName("order")
@ApiModel(value = "Order对象", description = "")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("orderId")
    private Long orderId;

    @TableField("orderNum")
    private String orderNum;

    @TableField("userId")
    private Long userId;

    @TableField("total")
    private String total;

    /**
     * 订单状态【1-未付款，2-已付款，3-已发货，4-已到目的地，5-已收货，6-退货】
     */
    @TableField("status")
    private String status;

    @TableField("createTime")
    private Date createTime;

    @TableField("updateTime")
    private Date updateTime;

    @TableField("receiver")
    private String receiver;

    @TableField("address")
    private String address;

    @TableField("contact")
    private String contact;

    @TableField("username")
    private String username;


}
